package strings;
import java.util.regex.*;
import java.util.*;
import static net.mindview.util.Print.*;
public class SpliteDemo {
    public static void main(String[] args) {
        String input="This!!unusual use!!of exclamation!!points";
        print(Arrays.toString(Pattern.compile("!!").split(input)));
        print(Arrays.toString(Pattern.compile("!!").split(input,3)));
    }
}
